﻿using furion.blog.Domain.Shared.Enum;
using furion.blog.Domain.Shared.ValidateAttribute;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Shop
{
    /// <summary>
    /// 店铺审核表单
    /// </summary>
    public class ShopCheckDto
    {
        /// <summary>
        /// 后端审核人员ID
        /// </summary>
        public long UserId { get; set; }


        [JsonProperty(PropertyName = "id")]
        [Required(ErrorMessage = "缺少店铺ID")]
        public long ShopId { get; set; }

        [JsonProperty(PropertyName = "checkResult")]
        [Required(ErrorMessage = "请选择审批结果")]
        [ValuesValidateAttribute(ErrorMessage = "审批结果有误", StrValues = new string[] { "Passed","UnPass" })]
        public string CheckResult { get; set; } = string.Empty;


        [JsonProperty(PropertyName = "checkRemark")]
        public string CheckRemark { get; set; } = string.Empty;
    }
}
